package com.example.crowdfunding.mapper;

import com.example.crowdfunding.entity.Menu;
import com.example.crowdfunding.entity.MenuExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * The interface Menu mapper.
 */
public interface MenuMapper {

    /**
     * Count by example int.
     *
     * @param example the example
     * @return the int
     */
    int countByExample(MenuExample example);

    /**
     * Delete by example int.
     *
     * @param example the example
     * @return the int
     */
    int deleteByExample(MenuExample example);

    /**
     * Delete by primary key int.
     *
     * @param id the id
     * @return the int
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * Insert int.
     *
     * @param record the record
     * @return the int
     */
    int insert(Menu record);

    /**
     * Insert selective int.
     *
     * @param record the record
     * @return the int
     */
    int insertSelective(Menu record);

    /**
     * Select by example list.
     *
     * @param example the example
     * @return the list
     */
    List<Menu> selectByExample(MenuExample example);

    /**
     * Select by primary key menu.
     *
     * @param id the id
     * @return the menu
     */
    Menu selectByPrimaryKey(Integer id);

    /**
     * Update by example selective int.
     *
     * @param record  the record
     * @param example the example
     * @return the int
     */
    int updateByExampleSelective(@Param("record") Menu record, @Param("example") MenuExample example);

    /**
     * Update by example int.
     *
     * @param record  the record
     * @param example the example
     * @return the int
     */
    int updateByExample(@Param("record") Menu record, @Param("example") MenuExample example);

    /**
     * Update by primary key selective int.
     *
     * @param record the record
     * @return the int
     */
    int updateByPrimaryKeySelective(Menu record);

    /**
     * Update by primary key int.
     *
     * @param record the record
     * @return the int
     */
    int updateByPrimaryKey(Menu record);

}